import os
def checkJX(jpeg_dir, anno_dir):
    images_number = len(os.listdir(jpeg_dir))
    count = 0
    for images in os.listdir(jpeg_dir):
        images_name = images.split('.')[0]
        if not os.path.exists(os.path.join(anno_dir, images_name + ".xml")):
            print(images_name)
            count += 1


    if count > 0:
        print("There are {} images without annocation.".format(count))
    else:
        print("All images and all XML-files are one-to-one correspondence!")